# Contributor: mekyt <hello@mek.yt>
# Maintainer: mekyt <hello@mek.yt>
pkgname=resources
pkgver=1.6.0
pkgrel=1
pkgdesc="Powerful monitor for your system resources and processes"
url="https://github.com/nokyan/resources"
license="GPL-2.0-or-later"
# https://github.com/jasonwhite/syscalls?tab=readme-ov-file#architecture-support
arch="aarch64 armhf x86 x86_64 riscv64"
makedepends="
	glib-dev
	gtk4.0-dev
	libadwaita-dev
	meson
	cargo
	ninja
	desktop-file-utils
	appstream-glib
"
subpackages="$pkgname-lang"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/nokyan/resources/archive/refs/tags/v$pkgver.tar.gz
"
options="!check" # no test suite

build() {
	abuild-meson -Dprofile=default . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
576278c3c1318dab74697c36c6f1299ca4854b767e84641cd68642f1e4454b6ac65c269da9e8eeae028b8e5012546fc49f125f484fa800ec96548d392429b653  resources-1.6.0.tar.gz
"
